/**
 * 
 */
package com.effectiv.req1.domain;

import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Dhrubo
 *
 */
@Document(collection="t_project")
public class Project {
	
	@Id
	@Getter @Setter
	private String id;
	@NotEmpty
	@Getter @Setter
	private String name;
	@Getter @Setter
	private String description;
	@Getter @Setter
	private User createdBy;
	@Getter @Setter
	private User lastUpdatedBy;
	@Getter @Setter
	private Date createdDate;
	@Getter @Setter
	private Date lastUpdatedDate;
	
	@Getter @Setter
	private User manager;
	
	@DBRef
	@Getter @Setter
	private Company company;
	
	
	@Getter @Setter
	private List<User> users;
}
